package com.maxd.bean.partner;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 内管添加合伙人入参
 */
@Getter
@Setter
@ApiModel("内管添加合伙人入参")
public class AddPartnerReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("合伙人商品ID")
    @NotNull(message = "请输入合伙人商品ID")
    private Long partnerCode;

    @ApiModelProperty("用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @ApiModelProperty("用户姓名")
    @NotBlank(message = "请输入用户姓名")
    private String userName;


    @ApiModelProperty("详细地址")
    private String addressDetail;

    @ApiModelProperty("增加的积分数")
    @Min(value = 1, message = "增加积分必须大于0")
    private Integer addPoint = 0;
}
